#ifndef ADDRESSEDIT_H
#define ADDRESSEDIT_H
#include <QLineEdit>
#include <DPushButton>
#include <DApplication>
#include <DGuiApplicationHelper>
#include <QTimer>
#include <QJsonObject>
#include <QJsonDocument>
#include <QJsonValue>
#include <QJsonArray>
#include <QFile>
DWIDGET_USE_NAMESPACE
class AddressEdit : public QLineEdit
{
public:
    AddressEdit();
    void focusInEvent(QFocusEvent *);
    void setStar(bool);
    void updateSafeState();
    QJsonObject json_bookmark;
    QString title;
private:
    DPushButton* btn_star;
    DPushButton* btn_scheme;
    DGuiApplicationHelper::ColorType theme;
    QTimer *timer;

    bool isStar;
    void star_click();
    void scheme_click();


};

#endif // ADDRESSEDIT_H
